using Central.PumpService;

namespace Central
{
    public class CentralTerminalCallback : ICentralTerminalServiceCallback
    {
        public delegate void WaterlevelChangedHandler(int stationId, int waterlevel);
        public WaterlevelChangedHandler OnWaterlevelChangedHandler { get; set; }

        public void OnWaterlevelChanged(int stationId, int waterlevel)
        {
            if (OnWaterlevelChangedHandler != null)
                OnWaterlevelChangedHandler(stationId, waterlevel);
        }
    }
}